//
//  DataCache.h
//  GameBoss
//
//  Created by dllo on 15/4/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@interface DataCache : NSObject
{
    sqlite3 *dbPoint;
}
+(instancetype)shareDataCache;

//打开数据库
-(void)openDB;
//创建一张数据库的name的表
-(void)createTable:(NSString *)tableName;
//插入任意model类型的元素
-(void)insertModel:(NSString *)tableName model:(id)model;
//返回保存的model 数组
-(NSMutableArray *)selectModel:(NSString *)tableName;
//删除model类的name表
-(void)dropTable:(NSString *)tableName;
//关闭数据库
-(void)closeDB;
@end
